package org.campuscontent.model;

public interface AutomataConstants
{
    public interface Global
    {
        public static final String ID   = "id"  ;
        public static final String NAME = "name";
        public static final String TYPE = "type";
    }
    
    public interface FileStream
    {
        public static final String NODE = "#Node";
        public static final String LINK = "#Link"; 
    }
    
    public enum NodeType
    {
        STARTEND ( "STARTEND" ), START ( "START" ), NORMAL( "NORMAL" ), END( "END" );

        NodeType( String name )
        {
            this.name = name; 
        }
        
        public boolean equals( NodeType other )
        {
            return name.equals( other.name );
        }
        
        public boolean equals( String other )
        {
            return name.equalsIgnoreCase( other );
        }
        
        public String value()
        {
            return name;
        }
        
        private String name;
        
        public static final int size = NodeType.values().length;
    }
}
